package com.qa.service;

import com.github.pagehelper.PageInfo;
import com.qa.common.ServerResponse;
import com.qa.pojo.Download;
import com.qa.pojo.User;

import java.util.List;

public interface IDownloadService {
    PageInfo<Download> getAll(String downloadName,Integer pageNum, Integer pageSize);

    List<Download> getByEmail(String email);

    ServerResponse upload(Download download, User user);

    Download getById(Integer downloadId);

    ServerResponse deleteById(Integer downloadId);

    int getCount(String beginTime, String endTime);

    List<Download> getAllDownload(String keyword);
}
